<script setup>
defineProps(['title'])
defineEmits(['add_count'])

import {ref} from 'vue'

let count_step = ref(1)

</script>

<template>
    <h1>{{ title }}</h1>
    <button @click="$emit('add_count', count_step)">Add</button>
    <input v-model="count_step"></input>
    <slot></slot>
</template>